-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add rw_rate_limit system catalog #19466
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
8e28432
to
425261d
Compare
#[primary_key] | ||
fragment_id: i32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe in theory 1 fragment can have multiple rate-limited nodes and it's not primary key
Yes, I was also a little hesitant to add isolation which might hurt debugging. 🤪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fn bitflag_intersects(column: SimpleExpr, value: i32) -> SimpleExpr { | ||
column | ||
.binary(BinOper::Custom("&"), value) | ||
.binary(BinOper::NotEqual, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Wow, it can actually be written like this. Does it work for PostgreSQL and MySQL backends? I'm not sure if these slts are covered by e2e tests for other backends. Cc @BugenZhao
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked their doc and tested locally and it works fine.
But seems not covered in CI.
Merge activity
|
40227bb
to
6f13304
Compare
3993c63
to
a7a89ea
Compare
feat: support rw_rate_limit refine Signed-off-by: xxchan <[email protected]> fix primary key Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
a7a89ea
to
fe69ce3
Compare
561e063
to
ebc55b3
Compare
…19466) (#19482) Signed-off-by: xxchan <[email protected]> Co-authored-by: Noel Kwan <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
It's not easy to know what jobs are rate limited, so add this.
I want to avoid iterating over all fragments, so I introduced a new fragment flag for FsFetch. This means
rw_rate_limit
won't show fs fragments created before this PR, and I think it's acceptable.Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.